FROM ubuntu:20.04

# solve please select the geographic area in which you live problems
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Shanghai

ADD sources.list /etc/apt/sources.list
ADD pip.conf /root/.pip/pip.conf
ADD docker-entrypoint.sh /tmp/docker-entrypoint.sh

RUN apt update -y && apt install -y git python3.9 python3-pip
RUN python3 -m venv python && source python/bin/activate && pip install -r requirements.txt

WORKDIR /opt/kiko9
ENTRYPOINT ["sh", "docker-entrypoint.sh"]